<?php
$company_name  		= get_option("mySetting_company_name");
$company_address  	= get_option("mySetting_company_address");
$company_tel  		= get_option("mySetting_company_tel");
$company_fax  		= get_option("mySetting_company_fax");
$company_email 		= get_option("mySetting_company_email");
$company_website	= get_option("mySetting_company_website");
$company_sales		= get_option("mySetting_company_sales"); 
?>
<div id="content-right">
        	
           	<!--begin box - content-->
			<div class="gioi-thieu contact">
            <span class="iconhome"></span>
            <div class="btbreakcumb">
            <?php bt_breadcrumb();?>
            </div>
	            <h1>CONTACT US</h1>
                <div class="bgabout"></div>              
				<div class="div10"></div>
                	<div class="thongtin">
                	<?php
                	if($company_name)
                		echo '<span class="blue">'.$company_name.'</span>';
                	if($company_address)
                		echo '<p>'.$company_address.'</p>';
                	if($company_tel)
                		echo '<p>Tel: '.$company_tel.'</p>';
                	if($company_fax)
                		echo '<p>Fax: '.$company_fax.'</p>';
                	if($company_website)
                		echo '<p>Website: '.$company_website.'</p>';
                	if($company_email)
                		echo '<p>Email: '.$company_email.'</p>';	
                	if($company_sales)
                		echo '<div class="div10"></div>
						<p><strong>Sales Hours</strong>: '.$company_sales.'</p>';				 
                	?>
					
					</div>
					<form method="post" action="">
            <p>
              <input type="text" name="Name" id="Name" onblur="if(this.value=='')this.value='Contact Name'" onfocus="if(this.value=='Contact Name')this.value=''" value="<?php if($_SESSION['send_request']['Name']) echo $_SESSION['send_request']['Name']; else echo 'Contact Name';?>" />
              <label id="contact_error_name" class="contact_error">*</label>
			   <input type="text" name="Address" id="Address" onblur="if(this.value=='')this.value='Address'" onfocus="if(this.value=='Address')this.value=''" value="<?php if($_SESSION['send_request']['Address']) echo $_SESSION['send_request']['Address']; else echo 'Address';?>" />
			   <label id="contact_error_address" class="contact_error">*</label>
            </p>					
            <p>
              <input type="text" name="Phone" id="Phone" onblur="if(this.value=='')this.value='Phone Number'" onfocus="if(this.value=='Phone Number')this.value=''" value="<?php if($_SESSION['send_request']['Phone']) echo $_SESSION['send_request']['Phone']; else echo 'Phone Number'; ?>" />
              <label id="contact_error_phone" class="contact_error">*</label>
			   <input type="text" name="Email" id="Email" onblur="if(this.value=='')this.value='Contact Email'" onfocus="if(this.value=='Contact Email')this.value=''" value="<?php if($_SESSION['send_request']['Email']) echo $_SESSION['send_request']['Email']; else echo 'Contact Email'; ?>" />
			   <label id="contact_error_email" class="contact_error">*</label>
            </p>
			<p class="clear"></p>
			<p>
              Content </p>
			 <p> 
			  <textarea name="Message" id="Message"><?php if($_SESSION['send_request']['Message']) echo $_SESSION['send_request']['Message'];?></textarea>
			  <label id="contact_error_message" class="contact_error">*</label>
            </p>
			<p> <input type="text" name="Captcha" id="Captcha" onblur="if(this.value=='')this.value='Input Code'" onfocus="if(this.value=='Input Code')this.value=''" value="<?php if($_SESSION['send_request']['Captcha']) echo $_SESSION['send_request']['Captcha']; else echo 'Input Code';?>" /> 
			<label id="contact_error_captcha" class="contact_error">*</label>
			<img src="<?php echo WP_MYSITE_TEMPLATE_URL;?>/incs/captcha/index.php" alt="" />
			<input type="submit" value="Send" id="contact_us_send" ></p>
			<p style="color: red; text-align: center; float: left;"><?php echo $error_result;?></p>
			<?php wp_nonce_field('act_contact_us_send','act_contact_us_send');?>
          </form>
				
            </div>
            
        
        </div>
  <script type="text/javascript" src="<?php echo WP_MYSITE_TEMPLATE_URL;?>/js/mycontact.js"></script>
	<style>
		.contact_error
		{
			display:none;
		}
		.contact_error_show
		{
			display:block;
			color:red;
			font-weight:bold;
			float:left;
			margin-left:-10px;
		}
	</style>